package inventory.mappers;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import inventory.entity.User;
import inventory.entity.po.UserPo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sxt
 * @since 2019-11-06
 */

public interface UserPoMapper extends BaseMapper<UserPo> {

    List<UserPo> selectLikeUsername(@Param("username") String username);

    List<UserPo> selectLikeWorkId(@Param("workId") String workId);

    List<UserPo> queryAllUserByManager( List<String> managerId);

    List<UserPo> selectLikeUsernameAndWorkId(@Param("username") String username, @Param("workId") String workId);

    List<UserPo> selectUserByRoleId(String roleId);


    //--------------------------rhq---start------------------




    UserPo queryUserPoByUserId(String userId);


    //--------------------------rhq---end------------------

}
